package ru.study.thinkin.chapter13;

import java.util.Arrays;
import java.util.List;

public class SnowRemovalRobot implements Robot {
	private String name;
		
	public SnowRemovalRobot(String name) {	
		this.name = name;
	}	

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getModel() {
		return "SnowBall Series 11";
	}

	@Override
	public List<Operation> getOperations() {
		return Arrays.asList(
				new Operation() {
					public String description() {
						return name + "может убирать снег";
					}
					public void command() {
						System.out.println(name + "убирает снег");
					}
				},
				new Operation() {
					public String description() {
						return name + "может колоть лед";
					}
					public void command() {
						System.out.println(name + "колет лед");
					}
				}
		);
	}

	public static void main(String[] args) {
		Robot.TestRobot.test(new SnowRemovalRobot("Slusher"));
	}

}
